The present invention relates to cyclic indolizinecarboxamides and azaindolizinecarboxamides of the formulae Ia and Ib, (Ia) (Ib) wherein R, Ra, R10, R20, R30, R40, Y, n, p and q have the meanings indicated in the claims, which are valuable pharmaceutical active compounds. Specifically, they inhibit the enzyme renin and modulate the activity of the renin-angiotensin system, and are useful for the treatment of diseases such as hypertension, for example. The invention furthermore relates to processes for the preparation of the compounds of the formulae Ia and Ib, their use and pharmaceutical compositions comprising them.La présente invention concerne des indolizine-carboxamides cycliques et des aza-indolizine-carboxamides de formule Ia et Ib, (Ia) (Ib) dans lesquelles R, Ra, R10, R20, R30, R40, Y, n, p et q ont les significations indiquées dans les revendications, qui sont des composés pharmaceutiques actifs intéressants. De manière spécifique, ils inhibent lenzyme rénine et modulent lactivité du système rénine-angiotensine, et sont utiles pour le traitement de maladies telles que lhypertension, par exemple. Linvention concerne en outre des procédés de préparation des composés de formule Ia et Ib, leur utilisation et des compositions pharmaceutiques les contenant.