A novel polycyclic quinazoline alkaloid (1) along with one new natural quinoline alkaloid (2) and two known quinoline alkaloids (3, 4) were isolated from the marine-derived fungus Trichoderma longibrachiatum QD01. Structural determinations of those isolates were established by comprehensive spectroscopic analyses and literature comparison. Single-crystal X-ray diffraction analysis of novel compound verified its structure and stereochemistry, representing the first characterized crystal structure of a trimeric-type of tetrahydroquinazoline. Compound 4 exhibited potential antibacterial and anti-quorum sensing activity against C. violaceum and C. violaceum CV026. The sub-MIC of 4 observably decreased the violacein production in C. violaceum CV026 by 55% on 15μg/mL. Furthermore, molecular docking results revealed that 4 has stronger binding interactions with CviR receptor than ligand C6-HSL with lower binding energy of -8.68 kcal/mol. Hydrogen bond and π-π interactions formed by Trp84, Tyr88, Trp111, and Phe126 were predicted to play an important role in the inhibition against C. violaceum CV026.