The City of Dubuque has received a nearly $5.2 million grant from the U.S. Housing and Urban Development Department to help homeowners remedy safety risks, including toxic lead paint.