hanuman ji surrendered to the soldiers of King Ravana. In the court, King Ravana ordered to put Hanuman's tail on fire. As soon as his tail caught fire, he broke free and flew away. With his tail on fire he started destroying the whole city of lanka and put entire Lanka on fire. This incident is famously known as "Lanka Dahan". This was done just to show strength of Lord Rama to demon Ravana.