The Law of Portugal was applied in Brazil until its independence in 1822. After the independence, the Portuguese laws continued in force, gradually being supplemented or amended by the laws of the Empire of Brazil and latter by the Brazilian republican laws. Although already separate, having an independent development and receiving other influences, the Law of Brazil continued to be very influenced by the Law of Portugal, given the cultural affinities between the two countries, the high number of Portuguese residents in Brazil and also the fact that many Brazilian jurists received their training in law in the University of Coimbra.
The legal system of Brazil was shaped by a complex interplay of Portuguese law, Brazilian laws, and influences from the Empire of Brazil and later the Republic of Brazil. This influence stemmed from cultural ties, the presence of Portuguese residents, and the educational background of many Brazilian jurists in Portugal.