Melica longiflora can be found growing on hills and central plains in the lower parts of the Andes on the elevation of 1300 meters where similar genera, such as Eulychnia, Proustia, Trichocereus, and species Acacia caven, Baccharis linearis, Lithraea caustica, Peumus boldus, Puya chilensis, Schismus polygamus, and Trevoa trinervis can be found as well.