In July 2011, ratings agency Moody's downgraded its long-term credit assessment of Portugal after warning of deteriorating risk of default in March 2011.