The 24-year-old man will also be reported for other road traffic offences and the off-road motorbike was seized.
Officers carrying out patrols in the Loanhead area observed an off-road bike without its lights early on Thursday, July 21. After stopping, the rider of the bike attempted to make off on foot, however was quickly traced by police.
A report will be submitted to the Procurator Fiscal in connection with the incident.
Edinburgh news: Emergency services called to street in Capital after bin lorry hits block of flats
Edinburgh weather: Here is when the storm is set to hit the Capital and the Lothians today
St James Quarter: Video shows leaking in Edinburgh's new shopping centre as a storm set to hit the Capital
East Lothian crime news: Woman taken to hospital after serious assault in Musselburgh
A71 crash: Edinburgh commuters face delays after ‘serious’ two-vehicle crash at Dalmahoy Junction
On social media today, locals praised the police for taking quick action against the culprit, after numerous recent reports of young men on off-road motorbikes causing panic across Midlothian.
On the Midlothian Police Facebook page, Vicky Doc Lyon said: “There are a significant number of young people on off road bikes around the authority firing up and down pathways designed for pedestrians and cyclists and horse riders. Its only a matter of time until someone is killed or significantly injured.
While, Stephen Ball added: “Well done Police Scotland. I observed an off-road motorbike last night racing the streets. Masked up so no one can recognise them. They are a danger to everyone including themselves but they don’t think about that.”
Meanwhile, police in Midlothian are urging local people take part in their latest survey.
In a social media post, they said: “Tell us what you think about the policing in your local area, take part in the #YourPolice survey: http://ow.ly/WH4v30skuTM.”