The US Senate on Thursday rejected two funding bills — one introduced by Democrats and the other by Republicans — to end the government shutdown.

The Senate failed to achieve the 60 votes required to advance the Republican bill, which included funding for a wall along the US-Mexico border as well as several immigration restrictions.

A continuing resolution introduced by Democrats to extend last year's federal budget also did not pass, but it got two more votes than the Republican legislation and had the support of six Republicans.

On Thursday, the 34th day of the partial government shutdown, the US Senate voted on two bills to reopen the government. Both failed.

The first bill, which was backed by President Donald Trump and included funding for his long-promised wall along the US-Mexico border, fell short of the 60 votes necessary to advance it, 50-47.

Sen. Joe Manchin of West Virginia cast the sole Democratic vote for the bill, while Republican Sens. Mike Lee of Utah and Tom Cotton of Arkansas voted against it.

McConnell leaves the Senate chamber on Thursday. AP Photo/J. Scott Applewhite

The legislation, which also included several immigration restrictions, was widely condemned by Democrats as a bad-faith attempt to reopen the government by adding several "poison pills."

Read more: Democrats are rejecting Trump's immigration deal for 3 glaring reasons, and it shows just how far apart the 2 sides still are

The bill would have, among other things, required unaccompanied minors seeking asylum in the United States to apply in their home country and deported those who appear at the border, and reduced the number of people eligible for temporary protected status and protections under the Deferred Action for Childhood Arrivals program.

"No one — no one — can call this a new effort at compromise," Senate Minority Leader Chuck Schumer said in a statement before the vote.

The Senate also voted 52-44 to reject a continuing resolution that Democrats brought to the floor to reopen the government by extending last year's appropriations. It did not include funding for a wall.

While the Republican Party controls the Senate 53-47, the Democratic proposal to reopen the government secured more votes than the Republican bill, including those of six Republican senators: Lamar Alexander of Tennessee, Susan Collins of Maine, Cory Gardner of Colorado, Johnny Isakson of Georgia, Lisa Murkowski of Alaska, and Mitt Romney of Utah.