Dioxygen is a gas while sulphur (S8) is a solid. Why?
Due to pπ−pπpπ−pπ bonding in O2O2 molecule, the intermolecular forces are weak Vander Waals forces as it is small in size with high electron density which tends to repel other molecules in it. So, as a result Dioxygen is a gas. While sulphur does not form an S=S bond hence exists as S8S8with strong covalent bonds as a polyatomic molecule whose intermolecular forces are strong. So, S8S8 is solid.