Organosulfur compounds
Organosulfur compounds are organic compounds that contain sulfur (sulphur). They are often associated with foul odours, but ironically many of the sweetest compounds known are organosulfur derivatives.  Nature abounds with organosulfur compounds - sulfur is essential for life.  Two of the 20 common amino acids are organosulfur compounds.  Fossil fuels, coal, petroleum, and natural gas, which are derived from ancient organisms, necessarily contain organosulfur compounds, the removal of which is a major focus on oil refineries.
Sulfur shares the chalcogen group with oxygen, and it is expected that organosulfur compounds have similarities with carbon-oxygen compounds, which is true to some extent.
A classical chemical test for the detection of sulfur compounds is the Carius halogen method.

# Classes of organosulfur compounds
Organosulfur compounds can be classified according to the sulfur-containing functional groups, which are listing in decreasing order of their occurrence.

## Thioethers, thioesters, thioacetals
Thioethers are characterized by C-S-C bonds.  The C-S bond is both longer, because S is larger,  and weaker than C-C bonds.  Selected bond lengths in sulfur compounds are 183 pm for the S-C single bond in methanethiol and 173 pm in thiophene. The C-S bond dissociation energy for thiomethane is 89 Kcal/mol compared to methane's 100 Kcal/mol and when hydrogen is replaced by a methyl group the energy decreases to 73 Kcal/mol .
The single carbon to oxygen bond is shorter than that of the C-C bond. The bond dissociation energies for dimethylsulfide and dimethyl ether are respectively 73 and 77 Kcal/mol.
Thioethers are typically prepared by alkylation of thiols. They can also be prepared via the Pummerer rearrangement. In one named reaction called the Ferrario reaction phenyl ether is converted to phenoxthin by action of elemental sulfur and aluminium chloride 
Thioacetals, which are useful in umpolung of carbonyl groups, are a special class of thioethers as well as thioesters with general structure R-CO-S-R.
Thiophenes  represent a special class of thioethers that are aromatic.  The resonance stabilization of thiophene is 29 Kcal/mol compared to 20 kcal/mole for the oxygen analogue furan. The reason for this difference is the higher electronegativity for oxygen drawing away electrons to itself at the expense of the aromatic ring current. Yet as an aromatic substituent the thio group is less effective as an activating group than the alkoxy group.

## Thiols, disulfides
Thiol group contain the functionality R-SH.  Thiols are structurally similar to the alcohol group, but these functionalities are very different in their chemical properties.  Thiols are correspondingly more nucleophilic, more acidic, and more readily oxidized. This acidity can differ by 5 pKa units .
The difference in electronegativity between sulfur (2.58) and hydrogen (2.20) is small and therefore hydrogen bonding in thiols is not prominent.  Aliphatic thiols form monolayers on gold, which are topical in nanotechnology.
Certain aromatic thiols can be accessed through a Herz reaction.
Disulfides R-S-S-R with a covalent sulfur to sulfur bond are important for crosslinking: in biochemistry for the folding and stability of some proteins and in polymer chemistry for the crosslinking of rubber.

## Double bonds between C and S
Double bonds of carbon and sulfur are relatively uncommon, because such species often tend to oligomerize or polymerize. A famous exception to this rule include carbon disulfide, carbonyl sulfide, and thiophosgene.  Also thioamides are often highly stable.
Thioketones have the general structure RC(=S)R'.  These species are quite rare, in contrast to their oxygen analogues.  Thioaldehydes are rarer still, reflecting their lack of steric protection.
Thioamides, with the formula R1C(=S)N(R2)R3 are more common. They are typically prepared by the reaction of amides with Lawesson's reagent.
Double bonds of carbon and sulfur exist as Sulfonium ylides for instance in the Johnson-Corey-Chaykovsky reaction.

# Sulfonic acids, esters, amides
Sulfonic acids have functionality RS(=O)2OH.  They are strong acids that are typically soluble in organic solvents. Sulfonic acids like Trifluoromethanesulfonic acid is a frequently used reagent in organic chemistry. Sulfa drugs are sulfonamides  derived from aromatic sulfonation.

## Sulfuranes and persulfuranes
Sulfuranes are relatively specialized functional group that are tetravalent, hypervalent sulfur compounds, with the formula SR4  and likewise persulfuranes are hexavalent SR6. All-carbon persulfuranes have been known for the heavier representatives of the chalcogen group, for instance the compound hexamethylpertellurane (Te(Me)6) was discovered in 1990  by reaction of tetramethyltellurium with xenon difluoride to Te(Me)2)F2 followed by reaction with diethyl zinc. The sulfur analogue hexamethylpersulfurane SMe6 has been predicted to be stable  but has not been synthesized yet.
The first ever all-carbon persulfurane actually synthesized in a laboratory has two methyl and two biphenyl ligands :
It is prepared from the corresponding sulfurane 1 with xenon difluoride / boron trifluoride in acetonitrile to the sulfuranyl dication 2 followed by reaction with butyllithium in tetrahydrofuran to (a stable) persulfurane 3 as the cis isomer. X-ray diffraction shows C-S bond lengths ranging between 189 and 193 pm (longer than the standard bond length) with the central sulfur atom in a distorted octahedral molecular geometry.
In silico experiments suggest that these bonds are very polar with the negative charges residing on carbon.

# Naturally occurring organosulfur compounds
Not all organosulfur compounds are foul-smelling pollutants. Compounds like allicin and ajoene are responsible for the odor of garlic, and lenthionine contributes to the flavor of shiitake mushrooms. Many of these natural products also have important medicinal properties such as preventing platelet aggregation or fighting cancer.

# Organosulfur compounds in pollution
Most organic sulfur compounds in the environment are naturally occurring, as a consequence of the fact that sulfur is essential for life and two amino acids contain this element.
Some organosulfur compounds in the environment, are generated as minor by-products of industrial processes such as the manufacture of plastics and tires.
Selected smell-producing processes are organosulfur compounds produced by the coking of coal designed to drive out sulfurus compounds and other volatile impurities in order to produce 'clean carbon' (coke), which is primarily used for steel production.

## Organosulfur compounds in fossil fuels
Odours occur as well in chemical processing of coal or crude oil into precursor chemicals (feedstocks) for downstream industrial uses (e.g. plastics or pharmaceutical production) and the ubiquitous needs of petroleum distillation for (gasolines, diesel, and other grades of fuel oils production.
Organosulfur compounds might be understood as smelly contaminants that need to be removed from natural gas before commercial uses, from exhaust stacks and exhaust vents before discharge.  In this latter context, organosulfur compounds may be said to account for the pollutants in sulfurous acid rain, or equivalently, said to be pollutants within most common fossil fuels, especially coal.