Sulfides are compounds containing a sulfur atom and act as weak bases by accepting protons to form thiol groups.