A heterocycle-containing carbonic acid derivative represented by the following general formula (I): ##STR1## or a physiologically acceptable salt thereof which exhibits an excellent preventive and therapeutic effect against various diseases, and an intermediate which is useful for the production of the heterocycle-containing carbonic acid derivative.