Endophytic bacteria found in marine macroalgae have been studied for their potential antimicrobial activity, consequently, they could serve as a valuable source of bioactive compounds to control pathogenic bacteria, yeasts, and fungi. Algae endophytic bacteria were isolated from Caulerpa sp., Ulva sp., Ahnfeltiopsis sp., and Chondracantus chamissoi from Yacila and Cangrejo Beaches (Piura, Peru). Antimicrobial assays against pathogenic bacteria were evaluated using cross-culture, over-plate, and volatile organic compound tests. Afterward, the minimum inhibitory concentration (MIC) and minimum bactericidal concentration (MBC) of selected crude extracts were determined, also ITS molecular analysis, antifungal activity, and PCR of iturin, fengycin, and surfactin genes were performed for bacteria strains exhibiting better activity. Forty-six algae endophytic bacteria were isolated from algae. Ten strains inhibited gram-positive pathogenic bacteria (Enterococcus faecalis, Staphylococcus epidermidis, S. aureus, and Listeria monocytogenes), and 12 inhibited gram-negative bacteria (Escherichia coli and Salmonella enteric sv typhimurium). Bacteria with better activity belong to Bacillus sp., Kluyvera ascorbata, Pantoea agglomerans, Leclercia adecarboxylata, and Enterobacter sp., which only four showed antifungal activities against Candida albicans, C. tropicalis, Colletotrichium sp., Fusarium sp., Fusarium oxysporum, and Alternaria sp. Furthermore, K. ascorbata YAFE21 and Bacillus sp. YCFE4 exhibited iturin and fengycin genes. The results indicate that the algae endophytic bacteria found in this study, particularly K. ascorbata YAFE21, Bacillus sp. YCFR6, L. adecarboxylata CUFE2, Bacillus sp. YUFE8, Enterobacter sp. YAFL1, and P. agglomerans YAFL6, could be investigated as potential producers of antimicrobial compounds due to their broad activity against various microorganisms.