Boeing Co. is in takeover talks with Brazilian aircraft maker Embraer SA, a move to fortify the U.S. aerospace giant against recent efforts by its greatest rival to move into the market for smaller passenger jets.

A deal would hand Boeing the largest maker of so-called regional jets that serve smaller airline routes, as well as access to Embraer’s well-regarded engineering workforce.

It...