Borrowed from French forge, itself from Latin fabrica. Doublet of frágua and fábrica.
Practice speaking and memorizing "forja" and many other words and sentences in Portuguese.