“Midway” is episode seventeen of season four of Stargate: Atlantis.
Previously, Carter and McKay had designed an intergalactic gate bridge comprised of stargates that was first tested in “The Return: Part 1”.
The IOA is interviewing people and, having been in a similar situation, Teal’c has been asked to help Ronon by Colonel Carter with his interview. The two do not get along.
The Wraith meanwhile hijack the gate bridge and seize control of Midway station whilst Ronon and Teal’c are on it, and launch an attack on Stargate Command. Teal’c and Ronon follow them, and end up battling the Wraith through the SGC.
Again, not surprisingly, after fighting together Teal’c and Ronon get on much better. Pretty typical.