A palladium-catalyzed oxidative dehydrogenation reaction in the presence of AMS and base to synthesize pyrazolones and pyrazoles was identified. This method can be utilized to a wide range of substrates, operates under mild react conditions and can give high yields. We believe it could be used as an alternative protocol for the classical dehydrogenation reactions.