The inductively coupled plasma (ICP) etching of a GaAs/GaInP/AlGaInP heterostructure is studied using various gas mixtures. It is found that gas chemistry has a significant influence on the etch profile of the heterostructure, which is crucial for the fabrication of ridge/rib structures on AlGaInP-based materials. The self-masking effects of both aluminum oxide and InClx cause rough etched surfaces and sidewalls. Using Cl2/BCl3/CH4 chemistry, the smooth and vertical etching of a GaAs/GaInP/AlGaInP heterostructure has been realized at a moderate etch rate.