Toyota led the Le Mans 24 Hours sportscar race into the morning on Sunday after a close battle with champion Porsche through the night at the Sarthe circuit in western France.

After 17 hours, Swiss driver Sebastien Buemi was at the front of the field in the No. 5 Toyota TS050 with Britain's Mike Conway a close second in the Japanese manufacturer's No. 6 car.

The No. 2 Porsche, with Switzerland's Neel Jani at the wheel, was seconds behind with all three frontrunners lapping at a similar pace.

Porsche's No. 1 car was effectively out of contention after a long stay in the pits around midnight as mechanics wrestled with high water temperatures.

The car — shared by Australian Mark Webber, New Zealand's Brendon Hartley and Germany's Timo Bernhard — was 30th and 38 laps down.

"We have been plugging away and putting in consistent lap times through the night, without taking unnecessary risks," said Britain's Anthony Davidson, who shares the No. 5 Toyota with Buemi and Japan's Kazuki Nakajima.

"It's a long race and we've got to stay in the fight all the way to the end. Everyone has done a good job so far; we'll keep pushing."

Japan's Kamui Kobayashi, in the No. 6 Toyota, lost precious seconds during his night stint when he made contact with a GT car.

Porsche and stablemates Audi have each entered only two cars instead of three in the main LMP1 category for cost-cutting reasons in the wake of parent company Volkswagen's diesel emissions scandal.

Last year's race was won by Germany's Nico Hulkenberg, New Zealander Earl Bamber and Britain's Nick Tandy, but none of them are driving in the main LMP1 category this time.

Hulkenberg is competing in Sunday's European Formula One Grand Prix in Baku for Force India.