What was the Roman army for?

Today we ask a basic question - what was the main function and purpose of the Roman Army under the Empire. Along the way, we will touch upon questions of controlling provinces, defending frontiers, maintaining the rule of the emperor, as well as policing, administration and construction. Also important to consider is the considerable cost of maintaining such a large, professional army, which as well as supporting an emperor, could depose him.