David Ortiz was released from the hospital Friday — nearly seven weeks after he was shot in his native Dominican Republic, according to ESPN.

The former Red Sox slugger had been at Massachusetts General Hospital since June 10 — the day after he was mistakenly targeted by a hitman and shot in the back at a club in Santo Domingo.

The 43-year-old retired All-Star underwent three surgeries — two in Boston and one the day of the shooting in the Dominican Republic.

Ortiz will continue his recovery at home with the aid of nurses and a personal physician, ESPN reported.