Because of the evolving resistance of microorganisms against existing antibiotics, there is an increasing need for new ones, not only in human, but also in veterinary medicine. The dichloromethane extract of a fungal strain of the genus Lophiostoma, isolated from driftwood collected from the coast of the Baltic Sea, displayed antibacterial activity against some fish pathogenic bacteria. Ergosterol epoxide (1), cerebroside C (2) and oxasetin (3) were isolated from the extract and structurally elucidated on the basis of spectroscopic data and chemical evidence. Compound 3 exhibited in vitro activity against Vibrio anguillarum, Flexibacter maritimus and Pseudomonas anguilliseptica with minimal inhibitory concentrations of 12.5, 12.5 and 6.25 µg/mL, respectively. Molecular docking studies were performed to understand the interaction of compound 3 with different macromolecular targets. Analysis of in silico results, together with experimental findings, validates the antimicrobial activity associated with compound 3. These results may be exploited in lead optimization and development of potent antibacterial agents.