They threw rice in the river to stop the fish from eating his body.
To celebrate the festival, people have dragonboat races againist each other. It is unclear where this tradition came from. Perhaps this is related to when the locals would row boats in the river searching for Quan Yu's body.