# Morocco Government Debt to GDP

Morocco Government Debt to GDP was 66.6% in 2025, down 0.4 percentage points from 2024.
That is the lowest reading since 2019.
Among the 38 economies Makrognosis covers on this measure, it is the 18th highest.

- Source agency: Bank Al-Maghrib Annual Report
- Makrognosis code: `MA.GOVDEBT.A.NSA`
- Frequency: annual
- Units: % of GDP
- Coverage: 2017-01-01 to 2025-01-01 (9 observations)
- Page: https://makrognosis.robomacro.com/data/morocco/government-debt-to-gdp

## Recent data

| Period | Value |
|---|---:|
| 2025 | 66.6% |
| 2024 | 67.0% |
| 2023 | 68.4% |
| 2022 | 71.4% |
| 2021 | 69.4% |
| 2020 | 72.2% |
| 2019 | 60.3% |
| 2018 | 60.5% |
| 2017 | 60.3% |

## API

```
curl -H "X-API-Key: $MAKROGNOSIS_KEY" \
  "https://makrognosis.robomacro.com/v1/series/MA.GOVDEBT.A.NSA"

# Python
import requests
r = requests.get("https://makrognosis.robomacro.com/v1/series/MA.GOVDEBT.A.NSA",
                 headers={"X-API-Key": KEY})
obs = r.json()["observations"]
```
