Matrine, one of the main alkaloid components extracted from the traditional Chinese herb, Sophora flavescens Ait, has various pharmacological effects, and has been reported to exert antitumor activity in melanoma. In the current study, the molecular mechanisms underlying the inhibitory effects of matrine were investigated in melanoma cell line. It was initially confirmed that matrine inhibited proliferation, invasion and induced apoptosis in human A375 and SK-MEL-2 melanoma cell lines in vitro. Subsequently, reverse transcription-quantitative polymerase chain reaction (RT-qPCR) analysis demonstrated that the expression of microRNA (miR)-19b-3p was significantly increased in melanoma cells and was downregulated by treatment with matrine. Furthermore, downregulated miR-19b-3p exerted effects similar to 500 µg/ml matrine on cell proliferation, invasion and apoptosis. Phosphatase and tensin homolog (PTEN) mRNA was identified as a direct target of miR-19b-3p through bioinformatics analysis and a dual-luciferase reporter assay. Additionally, western blotting and RT-qPCR analysis demonstrated that the expression of PTEN protein and mRNA were increased by the treatment with matrine. Furthermore, silencing of PTEN expression reversed the effects of matrine and miR-19b-3p downregulation in A375 and SK-MEL-2 cells. Taken together, the results indicated that matrine may suppress cell proliferation and invasion and induce cell apoptosis partially via miR-19b-3p targeting of PTEN.