The present invention relates to compounds that are agonists of muscarinic M1 receptors and are useful in the treatment of muscarinic M1 receptor-mediated diseases. Further provided are pharmaceutical compositions comprising the present compounds and therapeutic uses of the present compounds. Provided compounds have the following formula (where n is 1 or 2; p is 0, 1 or 2; q is 0, 1 or 2; R1-R6 are as defined herein) Compound).本発明は、ムスカリンM1受容体のアゴニストであり、かつムスカリンM1受容体媒介性疾患の処置に有用である化合物に関する。さらに提供されるのは、本化合物を含む医薬組成物および本化合物の治療的使用である。提供される化合物は、下記式(式中、nは1または2であり;pは0、1または2であり;qは0、1または2であり;R1~R6は本明細書で定義した通りである)の化合物である。