West Yorkshire Police Roads Policing Unit said the westbound carriageway was closed between Junctions 26 and 25 at around 4am to allow for the cows to be removed.
Highways Yorkshire worked with a local farmer to secure the cattle.
The motorway was then reopened, it was confirmed.
In a tweet, the WYPRPU said: "The M62 west between junctions 26 and 25 has been closed tonight to allow the safe removal of several cows that managed to enter the network.
"@HighwaysYORKS are working with the local farmer to secure the cattle and open the motorway."
Support the YEP and become a subscriber today. Enjoy unlimited access to local news and the latest on Leeds United, With a digital subscription, you see fewer ads, enjoy faster load times, and get access to exclusive newsletters and content. Click here to subscribe.