spiro ring compound containing nitrogen, its pharmaceutical composition, its janus kinase inhibitor, its therapeutic or preventive agent, and its use. the present invention relates to a compound of the following general formula [i]: [i] where each symbol has the same meaning as defined herein, or a pharmaceutically acceptable salt thereof, or a solvate thereof, and a pharmaceutical use the same in the treatment of organ transplant rejection, graft versus host reaction after transplantation, autoimmune disease, allergic disease and chronic myeloproliferative disease.composto de espiro anel contendo nitrogênio, sua composição farmacêutica, seu inibidor de janus quinase, seu agente terapêutico ou preventivo, e seu uso. a presente invenção refere-se a um composto da seguinte fórmula geral [i]: [i] em que cada símbolo tem o mesmo significado como definido aqui, ou um sal farmaceuticamente aceitável do mesmo, ou um solvato do mesmo, e um uso farmacêutico do mesmo no tratamento de rejeição a transplante de órgão, reação enxerto versus hospedeiro após transplante, doença autoimune, doença alérgica e doença mieloproliferativa crônica.