Ziegler was born in 1988 in Fairfax, Virginia, the daughter of Don and Cathy Ziegler. She was a part of a local swim team, FISH, where she was coached under Ray Benecki. She attended Bishop Denis J. O'Connell High School in Arlington County, Virginia, a Washington, D.C. suburb. At Bishop O'Connell, she excelled throughout her four years, earning Washington Post All-Met honors four straight years, including being named Swimmer of the Year on more than one occasion. As a freshman, she finished third in the 200-yard freestyle and won the 500-yard freestyle at the 2003 Metros Swimming and Diving Championships, breaking the 15-year-old record in the 500 held by Pam Minthorn. She also anchored O'Connell's 200-yard freestyle relay and 400-yard freestyle relay to seventh and sixth-place finishes, respectively. As a sophomore the following year, she won both the 200-yard freestyle and the 500-yard freestyle in record time, and anchored the winning 200-yard freestyle relay and third place 400-yard freestyle relay. Her times continued to drop rapidly, and as a junior she again won both the 200-yard freestyle and 500-yard freestyle in record time, the latter being an independent national high school record. As a senior, she continued to excel, tying the national high school record in the 200-yard freestyle and breaking the American record held by Janet Evans in the 500-yard freestyle. Ziegler initially attended George Mason University, and later transferred to Chapman University in 2011.
International career
2004-05
At the 2004 Short Course Worlds, she finished second to Japan's Sachiko Yamada in the 800-meter freestyle with a time of 8:20.55. Her 400-meter split would have placed fourth in the event at the meet. In February 2005, at the FINA World Cup stop in New York, Ziegler won the 800-meter freestyle in 8:16.32, breaking Cynthia Woodhead's 25-year-old American record, which at the time was the oldest American record on the books. In 2005, Ziegler won the 800-meter freestyle and 1,500-meter freestyle at the World Championships in Montreal. The latter time made her the third-fastest woman in the history of the event, following only world-record holder Janet Evans's 15:52.10 and German Hannah Stockbauer's 16:00.18. She qualified for Worlds after winning the 800-meter freestyle at World Trials in Indianapolis with a time of 8:34.83. She failed to qualify in the 400-meter freestyle, finishing third in a time of 4:12.09.
2006-08
At the 2006 Pan Pacific Swimming Championships, she swam the 1,500-meter freestyle in 15:55.01, making her the second fastest swimmer of all time in that event and only the second person to break the sixteen-minute mark. The third person was Hayley Peirsol who finished the event just two seconds later. In 2007, at an in-season meet, Ziegler broke Janet Evans's longstanding world record in the 1500-meter freestyle with a time of 15:42.54. It stood for six years until Katie Ledecky broke the record in 2013. At the 2007 World Championships, she won the 800-meter freestyle and 1,500-meter freestyle, to defend the titles she had won in 2005. In 2008, Ziegler qualified for the Olympic Games by placing second to Katie Hoff in both the 400-meter and 800-meter freestyle events. At the 2008 Summer Olympics in Beijing, however, Ziegler failed to qualify for the finals in either event. Notably, her best time in the 800-meter would have netted her a silver medal.
At the 2012 United States Olympic Trials in Omaha, Nebraska, Ziegler made the U.S. Olympic team for the second time by placing second behind Katie Ledecky in the 800-meter freestyle with a time of 8:21.87. She also competed in the 400-meter freestyle and finished seventh in the final. At the 2012 Summer Olympics in London, Ziegler swam in the fastest qualifying heat of 800-meter freestyle and posted a time of 8:37.38, behind Rebecca Adlington of the United Kingdom and Lauren Boyle of New Zealand. Only the top eight swimmers of all five qualifying heats advanced to the 800-meter finals, and Ziegler did not advance.
2015
In May, Ziegler returned to competition after a two-year break.