Tetracycline (TC), as a widely used antibiotic, is very useful in treating bacterial infections. However, its residues in animal foodstuffs can enter the human body through the food cycle and causes severe and chronic diseases. On the other hand, due to its weak non-biodegradability, it is considered a threat to the environment. In this regard, the development of sensing methods to detect and measure TC is need of the hour. Herein, a dual-emission fluorescence sensor based on porous aluminosilicate structure (ASS) with rough surface hexagonal shape morphology and pore diameter less than 2 nm was prepared. The porous AAS was modified by post-modification method with blue carbon dots (CDT) and rhodamine B (RB) as two fluorophores to develop the ratiometric fluorescence (RF) sensor (CDT-AAS/RB). Nanostructured CDT-AAS/RB emitted two resolved peaks at 445 and 585 nm , which were dramatically quenched in the presence of TC. The RF sensor, with excellent sensitivity, was able to measure TC over the linear range of 0.001–150 μM with a limit of detection of 5.4 nM in the aqueous phosphate buffer. Moreover, the AAS component granted high selectivity and anti-interference ability to the sensor. In addition, the stability of the sensor was greatly improved due to the non-accumulation of CDT nanoparticles and RB molecules in the presence of the AAS. The proposed method was able to determine TC in complex real samples with satisfactory recovery, and the obtained results were validated with standard high-performance liquid chromatography technique.