Provided herein are compounds and methods of synthesis thereof. The compounds provided herein are useful for the treatment, prevention, and/or management of various disorders, such as neurological disorders, psychiatric disorders, neuro-muscular disorders, gastrointestinal disorders, lower urinary tract disorder, and cancer. Compounds provided herein modulate the activity of metabotropic glutamate receptor 5 (mGluR5) in the central nervous system or the periphery. Pharmaceutical formulations containing the compounds and their methods of use are also provided herein.