Sponges forms association with many bacteria that serve as sources of new bioactive compounds. The compounds are produced in response to environmental and nutritional conditions of the environment that enable them to protect their host from colonization. In this study, three sponge bacterial endophytes were isolated, identified, and subjected to solvent extraction processes. The identified bacteria are Bacillus amyloquifaciens, Bacillus paramycoides, and Enterobacter sp. The bacteria were cultured in two different fermentation media with varying nutritional composition for the extraction process. The extracts were evaluated for antibacterial and antibiofilm activity against microfouling bacteria and the chemical composition of each extract was analyzed via gas chromatography-mass spectrometry (GC-MS). The extract from the endophytes shows varying antibacterial and antibiofilm activity against the tested strains. Several compounds were detected from the extracts including some with known antibacterial/antibiofilm activity. The results showed variations in activity and secondary metabolite production between the extracts obtained under different nutritional composition of the media. In conclusion, this study indicated the role of nutrient composition in the activity and secondary metabolites production by bacteria associated with sponge Also, this study confirmed the role of sponge bacterial endophytes as producers of bioactive compounds with potential application as antifouling (AF) agents.