In order to provide road information for outdoor mobile robot in a complicated environment, a new roadside detection method is proposed based on obstacle detection by applying a four-layer laser radar LD_ML. Because roadside obstacles distribute alone a road, theirs fitting straight lines are parallel to the road. The roadsides detection algorithm includes four steps: first, judge if there are obstacles along roadside or not; second, extract obstacles which belong to roadsides; third, build fitting straight lines through the roadside obstacles; at last, in order to obtain steady and precise roadsides, a EKF method is performed to track the roadsides. The results of experiment have testified the road roadsides detection algorithm has high stability and reliability.