Ramirez had the surgery to repair torn labrum tissue, Marlins spokesman Matt Roebuck said. Ramirez is expected to be ready for spring training.
Ramirez dislocated his shoulder while swinging at a pitch during a July 22 game against Cincinnati. Although he missed several games following the injury, he said at the time he would wait until the end of the season to have surgery.
Ramirez, the 2006 NL rookie of the year, finished the season with a .332 batting average, 212 hits and 29 home runs.