View Photo Gallery: Yancy Gates and the Bearcats did just enough to avoid an epic second-half collapse and hold off Texas in Nashville.

Through the first 20 minutes of their Friday round-of-64 matinee in Nashville, the Texas Longhorns played as if there was a lid on their basket.

But even as Texas went more than 10 minutes without a point in the first half, Cincinnati failed to put the Longhorns away — and it almost cost them.

Texas rallied to tie the game in the final four minutes, but the Bearcats never let them take the lead, and Yancy Gates stepped up down the stretch to help Cincinnati survive with a 65-59 win.

The Bearcats led 16-2 midway through the opening half and pushed their lead to as many as 19 early in the second.

But a change of ends did the trick for the Longhorns who came all the way back to tie the game at 52 with just under four minutes remaining. From there, Gates hit a layup and nailed a jumper with a Cashmere Wright layup sandwiched in between and the Bearcats held on to advance.

Gates finished with 15 points and 10 rebounds and Jaquon Parker added 13 points for the Bearcats who will face the winner of No. 3 Florida State and 14th-seeded St. Bonaventure.

J’Covan Brown had 16 points and Julien Lewis scored 14 for a Texas team loaded with six freshman and inexperience.

Box score: Cincinnati 65, Texas 59

More from Washington Post Sports

Vanderbilt holds on late to beat Harvard

New Mexico fends off Long Beach State

Syracuse survives a scare from UNC-Asheville

Marquette rolls over BYU

Wisconsin has little trouble with Montana

Louisville ousts upset-minded Davidson

Murray State races past Colorado State

McGruder leads Kansas State over Southern Miss

March Madness: Interactive bracket & tourney history

44: Obama picks Tar Heels to win it all

2012 NCAA tournament bracket predictions