SummaryDefects in quaternary InAlGaN barriers and their effects on crystalline quality and surface morphology have been studied. In addition to growth conditions, the quality of the GaN template may play an important role in the formation of defects in the barrier. Therefore, this work is focused on effects caused by threading dislocations (TDs) and inversion domains (IDs) originating from the underlying GaN. The effects are observed on the crystalline quality of the barrier and characteristic surface morphologies. Each type of TDs is shown to affect the surface morphology in a different way. Depending on the size of the corresponding hillock for a given pinhole, it was possible to determine the dislocation type. It is pointed out that the smallest pinholes are not connected to TDs whereas the large ones terminate either mixed type or edge type TDs. At sufficiently large layer thickness, the IDs originating from the GaN template lead to the formation of concentric trenches at the layer surface, and this is related to the change in growth kinetics on top and at the immediate surroundings of the ID.