It gained three seats - Colne Valley and Keighley from the Conservatives, and Leeds North West from the Liberal Democrats.
The Conservatives held five seats as Andrea Jenkyns retained her Outwood and Morley constituency, where she ousted Labour's Ed Balls in 2015.
The loss of Leeds North West means the Lib Dems have no seats in the county.
Live election result and reaction from across Yorkshire
Labour's Alex Sobel took the Leeds North West seat from Greg Mullholland with a majority of 4,224 and 44% of the vote.
It was this seat that saw the biggest increase of registered voters in this campaign. There were 68,152 eligible voters, a 16% increase.
Mr Mulholland, who represented the Lib Dems in the seat for 12 years, sent a brief tweet and said: "Night night all, it's been an honour & privilege."
The Keighley seat was gained for Labour by John Grogan who had a majority of just 249 over the Conservative, Kristan Hopkins.
In the third seat the party gained, Colne Valley, it was a majority of 915 for Labour's Thelma Walker over the sitting Conservative MP Jason McCartney.
Ms Walker said: "I could see people over the weeks listening to us on the doorstep and saying 'this is good this is what we want'. So we began the last few weeks to think we can do this."
Labour also retained several seats such as Halifax and Wakefield that had been Conservative targets.
In Halifax, where Theresa May launched the Tory manifesto, Labour's Holly Lynch increased her share of the vote from 40% to 52.8%, taking her 2015 majority of 428 to over 5,376.
Yvette Cooper, who retained Normanton, Pontefract and Castleford for Labour, and who voted against Jeremy Corbyn in last year's leadership election, said. "he won twice and that's why the party came together in this campaign to achieve this result".

The charges include rape, attempted rape, child prostitution, child pornography and drug charges linked to boys from Leicester and Coventry.
The men, aged between 24 and 78, face accusations the boys were abused by a group of men who befriended them.
One man appeared at Birmingham magistrates court on Tuesday and has been remanded into custody.
Tahir Hussain, 33, from St Joseph's Road in Ward End, Birmingham, appeared before magistrates on Tuesday and is charged with four counts of rape, one charged of sexual assault, three of sexual activity with a boy, six of facilitating child prostitution and a count of trafficking for the purposes of sexual exploitation.
Six of the offences are said to have been carried out against in a 15-year-old in February 2010. He has been remanded in custody until 24 August.
The other nine men have been bailed until 18 August.
They are
The Labour Party has increased its hold on West Yorkshire, winning 17 of the county's 22 seats.
[NEXT_CONCEPT]
Ten men from London and the Midlands have been charged with child sexual exploitation offences against two boys.