The invention discloses an instant positioning and map construction method and system based on a structured environment. The method comprises the following steps: S1, shooting a plurality of positionsin the structured environment by using a camera so as to obtain a plurality of images, wherein each position corresponds to an image; S2, extracting the linear features of each of the plurality of images, and performing vanishing-point extraction on lines extracted from each of the plurality of images; S3, optimizing the absolute rotation matrix R of an image P to obtain an optimized absolute rotation matrix R<^>; S4 correcting the absolute rotation matrix R<^> according to a relative rotation matrix R<ij> between the image P and an image P<j>; S5, calculating relative translation t<ij><-> between the image P and the image P<j>; S6, optimizing the absolute translation t of the image P according to the relative translation t<ij><->; and S7, constructing a structuredmap according to the absolute rotation matrix R obtained after re-mapping and the optimized absolute translation t. The invention has the beneficial effects that information provided by the structured environment is made full use of, and high accuracy is guaranteed.