Novel 3-(piperidinyl)- and 3-(pyrrolidinyl)-1H-indazoles, intermediates and processes for the preparation thereof, and methods for treating psychoses, treating depression, alleviating pain, treating convulsions and treating hypertension utilizing compounds or compositions thereof are disclosed.