The Spanish-born student of French nationality was found guilty of reckless driving and handed a six-month suspended sentence.
That sentence will be dismissed if the young man does not break the law in the next two years.
He also saw his driver's licence suspended for a year.
The man was arrested after posting a video of himself, yawning as he drove his vehicle from the passenger seat. He even overtook a truck.
Video: Spanish National Police/YouTube
Spanish police sent out a tweet asking for help in identifying the individual, and received 40 replies in 13 hours.
The driver was identified, and the criminal turned himself in.
The Policia Nacional, as they are known in Spain, are known for their active social media presence. They have over 900,000 followers on Twitter.