A diminished chord is formed by adding a minor third and a diminished fifth to any note:

In major keys, a diminished chord is found in the VII degree:
See triads in minor scales in our Reference section
Practice triad construction, identification and ear training with our online exercises