If it causes an obstruction in that it prevents you getting into your car and/or driving off, then it is an obstruction which is a Police matter and for which the offending vehicles can be towed away.
If having been told by the Police it then still persists, then it becomes willful obstruction for which they can be arrested and can carry a prison sentance.
So in a short phrase, Yes it is illegal.............