Police were called to remove a trespasser from the train lines between Fratton and Portsmouth.
It happened at around 1pm today.
The power had to be cut off to the train lines while railway staff and police investigated.
Services were delayed by around 20 minutes going through Fratton.
Trains are now running normally.