IntroductionSystemic lupus erythematosus (SLE) is an autoimmune disease involving many systems and organs, and individuals with SLE exhibit unique cancer risk characteristics. The significance of the basement membrane (BM) in the occurrence and progression of human autoimmune diseases and tumors has been established through research. However, the roles of BM-related genes and their protein expression mechanisms in the pathogenesis of SLE and pan-cancer development has not been elucidated.MethodsIn this study, we applied bioinformatics methods to perform differential expression analysis of BM-related genes in datasets from SLE patients. We utilized LASSO logistic regression, SVM-RFE, and RandomForest to screen for feature genes and construct a diagnosis model for SLE. In order to attain a comprehensive comprehension of the biological functionalities of the feature genes, we conducted GSEA analysis, ROC analysis, and computed levels of immune cell infiltration. Finally, we sourced pan-cancer expression profiles from the TCGA and GTEx databases and performed pan-cancer analysis.ResultsWe screened six feature genes (AGRN, PHF13, SPOCK2, TGFBI, COL4A3, and COLQ) to construct an SLE diagnostic model. Immune infiltration analysis showed a significant correlation between AGRN and immune cell functions such as parainflammation and type I IFN response. After further gene expression validation, we finally selected AGRN for pan-cancer analysis. The results showed that AGRN’s expression level varied according to distinct tumor types and was closely correlated with some tumor patients’ prognosis, immune cell infiltration, and other indicators.DiscussionIn conclusion, BM-related genes play a pivotal role in the pathogenesis of SLE, and AGRN shows immense promise as a target in SLE and the progression of multiple tumors.