From Old Galician-Portuguese bastir, borrowed from Old French bastir (“to build”).
Practice speaking and memorizing "bastir" and many other words and sentences in Portuguese.