This invention relates to a solid pharmaceutical compositions comprising metformin or pharmaceutically acceptable salt thereof. The composition of the invention comprises a solid dosage form which provides sustained release of the metformin. The invention also includes a process of preparing such compositions and method of treating type-2 diabetes mellitus by administering the composition to a patient in need thereof.