Novel triazolobenzazepine derivatives of the formula ##STR1## (wherein R.sup.1 and R.sup.2 are hydrogen or alkyl, X is ##STR2## wherein R.sup.3 and R.sup.4 are hydrogen, alkyl, aryl or aralkyl, and R.sup.5 is hydrogen or alkyl), Z is --SR.sup.6, --S(O).sub.n R.sup.6 or --OR.sup.7 (wherein R.sup.6 and R.sup.7 are alkyl or aralkyl, and n is 1 or 2), and Ring A is unsubstituted or substituted with at least one of halogen, lower alkyl, lower alkoxy and trifluoromethyl, and their physiologically acceptable salts have excellent pharmacological activities and are useful as medicines such as muscle-relaxants, analgesics and antiinflammatory drugs.