The Trifid is at approximately 6000 light years (Burham).
M 20 is a young HII star forming region with many protostars undergoing violent mass ejections. (Rho, et.al.).