Biogenic amines (BAs) play an important role in the aggressive behavior of crustaceans. In mammals and birds, 5-HT and its receptor genes (5-HTRs) are characterized as essential regulators involved in neural signaling pathways during aggressive behavior. However, only one 5-HTR transcript has been reported in crabs. In this study, the full-length cDNA of the 5-HTR1 gene, named Sp5-HTR1, was first isolated from the muscle of the mud crab Scylla paramamosain using the reverse-transcription polymerase chain reaction (RT-PCR) and rapid-amplification of cDNA ends (RACE) methods. The transcript encoded a peptide of 587 amino acid residues with a molecular mass of 63.36 kDa. Western blot results indicate that the 5-HTR1 protein was expressed at the highest level in the thoracic ganglion. Furthermore, the results of quantitative real-time PCR show that the expression levels of Sp5-HTR1 in the ganglion at 0.5, 1, 2, and 4 h after 5-HT injection were significantly upregulated compared with the control group (p < 0.05). Meanwhile, the behavioral changes in 5-HT-injected crabs were analyzed with EthoVision. After 0.5 h of injection, the speed and movement distance of the crab, the duration of aggressive behavior, and the intensity of aggressiveness in the low-5-HT-concentration injection group were significantly higher than those in the saline-injection and control groups (p < 0.05). In this study, we found that the Sp5-HTR1 gene plays a role in the regulation of aggressive behavior by BAs, including 5-HT in the mud crab. The results provide reference data for the analysis of the genetic mechanism of aggressive behaviors in crabs.