The present invention discloses a herbal composition for prevention and treatment of joint pain, the method of preparation thereof, and its application thereof. The composition relieves osteoarthritis pain and substantially treats osteoarthritis. It can be used for the prevention and treatment of osteoarthritis of various joints, including the knee joint, hip joint, wrist joint, spine joint, shoulder joint, and ankle joint. The composition disclosed herein can be formulated into tablet, capsule, dispersible tablet, chewable tablet, effervescent tablet, and buccal tablet. The composition comprises a mixture of glucosamine sulfate 2KCl, chondroitin sulfate, methyl-sulfonyl-methane (MSM), and any one or a combination of Sambucus williamsii Hance extract and Drynaria fortunei (Kunze) J. Sm. extract. Further, the mixture may comprise any one or a combination of type II collagen, Morinda officinalis root extract, Epimedium grandiflorum extract, and turmeric root extract. Preferably, the mixture is sieved and formulated into a dosage form with 0.10 g to 1.50 g of the mixture per dose. As compared to the prior art, the present invention offers advantages such as simple processing method, explicit functional components, and minimal side effects.