<P> Hadrian's Wall extended west from Segedunum at Wallsend on the River Tyne, via Carlisle and Kirkandrews - on - Eden, to the shore of the Solway Firth, ending a short but unknown distance west of the village of Bowness - on - Solway . The A69 and B6318 roads follow the course of the wall from Newcastle upon Tyne to Carlisle, then along the northern coast of Cumbria (south shore of the Solway Firth). </P> <P> Although the curtain wall ends near Bowness - on - Solway, this does not mark the end of the line of defensive structures . The system of milecastles and turrets is known to have continued along the Cumbria coast as far as Risehow, south of Maryport . For classification purposes, the milecastles west of Bowness - on - Solway are referred to as Milefortlets . </P> <P> Hadrian's Wall was probably planned before Hadrian's visit to Britain in AD 122 . According to restored sandstone fragments found in Jarrow which date from 118 or 119, it was Hadrian's wish to keep "intact the empire", which had been imposed on him via "divine instruction". </P> <P> Although Hadrian's biographer wrote "(Hadrian) was the first to build a wall 80 miles long to separate the Romans from the barbarians", reasons for the construction of the wall vary, and no recording of an exact explanation survives . Theories have been presented by historians, mostly of an expression of Roman power and Hadrian's policy of defence before expansion . On his accession to the throne in 117, Hadrian had been experiencing rebellion in Roman Britain and from the peoples of various conquered lands across the Empire, including Egypt, Judea, Libya and Mauritania . </P>

What was the purpose of the hadrians wall
find me the text answering this question