From my understanding, many of the features of water that make it very important for Earth's ecosystem are a result of oxygen's high electronegativity, which results in hydrogen bonding.
As nitrogen and fluorine also have some similar properties (High electronegativity, hydrogen bonding, stable hydrides, etc.), could they serve the same role water does in an alien ecosystem? (Obviously under different temperature and pressure conditions)
(I was directed to here from biology)