We present a detailed study of the Sh2-87 H ii region using a multiwavelength data set in optical to radio bands. A Herschel column density map revealed that the host cloud is filamentary in nature, and together they formed a central dense hub. The extinction map generated using near-infrared photometric data also signifies the nonuniform distribution of the cloud and reveals its filamentary nature. We estimated a sizable variable extinction over the region up to A V = 34.4 mag, with an average value of A V = 3.4 mag. Using the various infrared color–color criteria, we identified 13 Class I and 202 Class II young stellar objects (YSOs) and 22 Hα-emitting sources toward this region. Further analysis showed that the cluster is mainly composed of low-mass YSOs with a typical age of ∼3 Myr having masses in the range of 0.1–6.0 M ⊙. The identified evolved YSOs (i.e., Class II YSOs) are primarily distributed along the filaments and in the outer parts of the cloud, while the recent star formation, inferred by the presence of Class I YSOs, ionized gas, and star-forming clumps, is observed in the hub region. The overall star formation scenario in the Sh2-87 region resembles the global hierarchical collapse model of star formation, where younger massive star formation activity is expected at the central hub along with the distribution of evolved low-mass YSOs in the filaments and the outer parts of the cloud.