Question: do the lannisters get defeated?
Answer: They were defeated by his dragons in a battle that came to be known as the 'Field of Fire' and lost 4,000 men. They have since served the Targaryens and now King Robert Baratheon as the Lords Paramount of the Westerlands and Wardens of the West.