content: 
  ==Storylines==
  Margaery appears in ''A Clash of Kings'' (1998), having married Renly Baratheon and supporting his claim to the Iron Throne. After Renly's assassination, the Tyrells switch allegiance and Margaery is instead offered to wed King Joffrey Baratheon. In ''A Storm of Swords'' (2000), she becomes popular among the citizens of King's Landing through her various charitable activities. Margaery forms an amiable relationship with the King's ex-fiancee Sansa Stark and through Sansa she learns much about Joffrey's true nature. Margaery weds Joffrey, but he is poisoned at their wedding feast. In ''A Feast for Crows'' (2005) Margaery marries Joffrey's younger brother, Tommen, and encourages him to assert himself as king. Margaery's growing influence over Tommen  puts her in a bitter power struggle with his mother Cersei Lannister, which eventually culminates in Cersei framing Margaery for adultery. In ''A Dance with Dragons'' (2011), Margaery is released from prison and placed under house arrest, where she awaits trial.