A tram engine is a steam locomotive specially built, or modified, to run on a street, or roadside, tramway track.