The breeding habitat of American yellow warblers is typically riparian or otherwise moist land with ample growth of small trees, in particular willows ("Salix"). The other groups, as well as wintering birds, chiefly inhabit mangrove swamps and similar dense woody growth. Less preferred habitat are shrubland, farmlands and forest edges. In particular American yellow warblers will come to suburban or less densely settled areas, orchards and parks, and may well breed there. Outside the breeding season, these warblers are usually encountered in small groups, but while breeding they are fiercely territorial and will try to chase away any conspecific intruder that comes along.