Lantean-Wraith war

"Then one day our people stepped foot upon a dark world where a terrible enemy slept. Never before had we encountered beings with powers that rivaled our own. In our over-confidence, we were unprepared and outnumbered."

- Melia

The Lantean-Wraith war was the century long conflict which would lead to the destruction of the Ancients as a civilization.

Prelude
After traveling to the Pegasus galaxy in Atlantis, the Ancients seeded many of the planets in Pegasus with humans, while colonizing others for themselves, and eventually came to be known as the Lanteans. One of these planets, however, was home to a species called the Iratus bug, a creature possessing considerable immunological capabilities. The bugs began to feed on the humans seeded there and, as time went on, mutate, taking on many advantageous characteristics; eventually bringing about the creation of a hybrid species known as the Wraith. The Wraith, who needed to feed on humans to survive, eventually began a conquest of the Pegasus galaxy.

History
"The Lanteans were powerful but careless."

- Todd

For one hundred years, the Lanteans and the Wraith warred with each other. At first, the Wraith were at a severe disadvantage: the crystalline technology of the Lanteans was far superior to the organic technology of the Wraith, and one Lantean warship was able to incur massive damage on several hive-ships at once with their devastating drone weapons while at the same time suffering little to no damage themselves due to their powerful shield technology. The Lanteans, careless and overconfident, began to send their seemingly invincible warships deeper and deeper into Wraith-controlled territory. After a long period of time and with great cost to themselves, the Wraith managed to capture a number of these vessels and obtain the ZPMs powering them. Using these incredible power sources, the Wraith created at least one cloning facility, which they used to rapidly increase their numbers and give them a much needed advantage. The tide of war quickly turned in their favor; it no longer mattered that the Lanteans would win almost every battle: the Wraith kept coming in floods.

The Lanteans slowly began to fall back into their own territory, which the Wraith continued to absorb into their own, facing the mighty weapons platforms and outposts protecting Lantean-controlled territory in the process in their effort to destroy their enemy. Desperate, the Lanteans began to take more drastic measures, turning to their advanced technology to help them regain an advantage. Project Arcturus, an attempt to extract zero point energy from our own universe, and the creation of the Asurans, nanites designed to destroy the Wraith on a cellular level, were two such attempts. They both failed, with disastrous and far reaching consequences. The closest the Lanteans ever came to developing a means of defeating the Wraith was the Attero device, which could destroy Wraith ships in hyperspace, but its devastating and unforeseen side-effects led to it being abandoned. By the time the Attero device was conceived and subsequently shut down, it was obvious even to the Lanteans that they were losing the war.

They continued to gradually lose their ground against the Wraith for several years until the Lantean system was all that remained of their domain. In a final act of achieving some measure of peace, the Lanteans sent a delegation to meet with the Wraith and negotiate a truce. The Lantean delegation was protected by some of their most powerful warships, but they were ambushed by the Wraith's massive fleet. Their last chance at peace now gone, it was only inevitable that the Lanteans would eventually face their defeat.

Siege of Atlantis
While the Wraith were at first unable to reach Atlantis due to the numerous weapons platforms deployed throughout the star system, they were eventually able to destroy most of them and continue their conquest. Its last line of defense now gone, nothing was left to prevent the Wraith from advancing to Atlantis itself, held off only by the city's powerful shield and its stockpile of drone weapons. Even though the Lanteans were able to destroy the Wraith vessels every time they attacked, the Wraith were relentless and sent more ships to attack time and time again. Hopelessly outnumbered, the city's supply of drones rapidly dwindling, and the shield under continuous bombardment, the Lanteans ultimately decided to sink the city (which would allow the shield to hold for far longer than it ever could on the surface). Atlantis itself was brought to its knees, and the Lanteans had come to realize there was nothing more they could do. The Lantean Council made the decision to abandon the galaxy through the Stargate and return to Earth with the hope that their kind would one day return to Atlantis; the Pegasus Galaxy was left at the mercy of the victorious Wraith, who began to ruthlessly feed on the defenseless human herds.