Through the following thesis, the author deals with the issue of border control at external and internal borders of the European Union. At the beginning the author briefly presents the right to freedom of movement, its elements and regulation, and on the contrary, the right of the state to control its territory, as well as the EU citizenship, which brings a new dimension to the freedom of movement and further limits state's sovereignty. The thesis continues with presenting the historical development of schengen integration, focusing on the period before and after the Treaty of Amsterdam, and the current state of schengen within the European integration. As regards the core of the thesis, it begins with presentation of border control regulation in the sources of EU primary law. The first part deals with the external borders control, by analysing the provisions of the Schengen Borders Code, and goes on to review the regulation of the European Border and Coast Guard, the recently adopted entry/exit system, and the EU visa policy. The author also presents the central EU information system as the technical basis for all the rules and measures relating to the external borders control, and the interoperability of these systems. In the second part, the author presents the internal borders control, which includes the analysis of the provisions on the absence of border control at internal borders, as a fundamental rule of schengen integration, as well as the case law of the Court of Justice. Furthermore, the author discusses the regulation and procedures for temporary reintroduction of border control at internal borders, presenting the examples of reintroductions from Member States' practices and the proposed changes to the provisions of the Code. The author believes that the current system, together with the proposed reforms, restricts external border controls, with negative consequences for individuals' rights, while the reintroduction of internal border controls represents an illegal practice by Member States and disproportionate interference with the right to freedom of movement.