The 62-year-old man put up a fight but was eventually detained for drunk driving and resisting arrest, Diario Sur newspaper reported on Wednesday.
The incident took place outside Malaga's Europa College on Saturday night just as a large group of young children were leaving a school party.
Two off-duty police officers saw a clearly drunk man climb into his car. When he tried to put the vehicle into first gear, the officers approached the man and said he shouldn't drive in his condition.
Instead of obeying, however, the driver slapped one of the the officers. He then put the car into gear before allegedly trying to squash the policeman against the wall.
Luckily for the officers involved, the man had failed to release the handbrake.
One of the off-duty agents then tried to lean into the drunken driver's car through and grab the keys. This did not go down well.
The vehicle's owner allegedly said: "I'm going to mess you up".
He then pulled out a knife and headed towards the police officer who was protecting two small children.
According to police reports, the man then twice tried to stab the agent in the stomach.
At that moment uniformed back up arrived and one of these police officers took out his weapon to try and stop the aggravated individual. However, the man once again attacked with his knife.
While the man's attention was elsewhere, however, one of the off-duty officers managed to knock the drunken man to the ground.
He was then detained and taken into custody where his blood alcohol level was recorded at 0.89 milligrams, or almost three times the legal limit.