There was a very famous, disastrous mounted charge against a group of tanks that is viewed as the true end to horseback combat during WWI, although I cannot remember the name of the specific battle.
IIRC, horseback cavalry charges took place in WWII with the Poles in a last ditch effort against the German invasion. It didnt work out so good then either.