The Merrifield-Simmons index of a (molecular) graph is defined as the number of independent-vertex sets of . By we denote the set of unicyclic graphs with girth and the number of pendent vertices being respectively. Let be the graph obtained by identifying the center of the star with any vertex of . By we denote the graph obtained by identifying one pendent vertex of the path with one pendent vertex of . In this paper, we first investigate the Merrifield-Simmons index for all unicyclic graphs in and is shown to be the unique unicyclic graph with maximum Merrifield-Simmons index among all unicyclic graphs in for fixed and . Moreover, we proved that:
When , has the maximum Merrifield-Simmons index among all graphs in ; When , or has the maximum Merrifield-Simmons index among all graphs in
When , and are respectively unicyclic graphs having maximum and second-maximum Merrifield-Simmons indices among all unicyclic graphs in , where denotes the set of unicyclic graphs with vertices and pendent vertices.