Endophytes, especially those isolated from herbal plants, may act as a reservoir of a variety of secondary metabolites exhibiting biological activity. Some endophytes express the ability to produce the same bioactive compounds as their plant hosts, making them a more sustainable industrial supply of these substances. Urtica dioica L. (common stinging nettle) is a synanthropic plant that is widely used in herbal medicine due to the diversity of bioactive chemicals it contains, e.g., polyphenols, which demonstrate anti-inflammatory, antioxidant, and anti-cancerous capabilities. This study aimed at isolating endophytic bacteria from stinging nettles for their bioactive compounds. The endophytic isolates were identified by both biochemical and molecular methods (16S rRNA) and investigated for enzymes, biosurfactants, and polyphenols production. Each of the isolated bacterial strains was capable of producing biosurfactants and polyphenols. However, three of the isolated endophytes, identified as two strains of Bacillus cereus and one strain of Bacillus mycoides, possessed the greatest capacity to produce biosurfactants and polyphenols. The derivatized extracts from culture liquid showed the 1.633 mol l−1 (9.691 mg l−1) concentration of polyphenol compounds. Therefore, the present study signifies that endophytic B. cereus and B. mycoides isolated from Urtica dioica L. could be a potential source of biosurfactants and polyphenols. However, further study is required to understand the mechanism of the process and achieve efficient polyphenol production by endophytic bacteria.