Inclusion Criteria:
* Age between 18-75 years (inclusive of both 18 and 75), regardless of gender.
* Diagnosed with ulcerative colitis or Crohn's disease for ≥3 months, as assessed by histological or endoscopic examination prior to screening.
* Active moderate to severe UC or CD. .
* Subjects must have failed at least one of the following drug treatments for UC or CD or be intolerant: oral aminosalicylates, oral corticosteroids, immunosuppressants, biologics, etc.
* If subjects are using the following drugs for UC or CD at the time of screening, their treatment should be stabilized with oral aminosalicylates for at least 3 weeks before the first dose of the trial medication, or stabilized with oral systemic corticosteroids for at least 2 weeks before the first dose of the trial medication, and maintain a stable dose during the trial period.
* Subjects (including partners) are willing to voluntarily take appropriate and effective contraceptive measures from the time of screening until 3 months after the last administration of the study medication.
* Before the trial, understand in detail the nature, significance, potential benefits, possible inconveniences, and potential risks of the trial, understand the research procedures, and voluntarily sign the informed consent form.
Exclusion Criteria:
* Pregnant or breastfeeding women.
* Subjects diagnosed with indeterminate colitis, radiation colitis, or ischemic colitis.
* Have severe complications such as local stenosis, intestinal obstruction, intestinal perforation, lower gastrointestinal bleeding, intestinal cancer or tendency towards cancer, toxic megacolon; rectal colon polyps and anal diseases, etc., as assessed by the investigator, may affect the subject's efficacy and safety assessment.
* Subjects currently have a stoma, ileal pouch-anal anastomosis, fistula, and according to the physician's judgment, may require surgery or drug intervention within 12 weeks of entering the study, or may require ileostomy or colostomy.
* Subjects have had a large segment of the small intestine resected (\>100cm) or have been diagnosed with short bowel syndrome, or subjects require total parenteral nutrition.
* Subjects have a recorded positive test for Clostridium difficile toxin (C. difficile) in stool or positive polymerase chain reaction (PCR) test. If the result is positive, subjects may be re-screened after appropriate treatment and re-tested no earlier than 7 days after the end of treatment.
* Abnormal serum virology during the screening period: a) Active hepatitis, or positive for Hepatitis B surface antigen (HBsAg) and positive for hepatitis B virus (HBV)-DNA, or positive for Hepatitis B core antibody (HBcAb) and positive for HBV-DNA, or positive for hepatitis B virus (HCV) antibodies and positive for HCV-RNA; b) Positive for HIV antibodies during the screening period, or history of HIV infection; c) Positive for Treponema pallidum antibodies and positive for non-treponemal serologic tests (RPR or TRUST) during the screening period.
* History of active tuberculosis during the screening period or latent tuberculosis infection (defined as enzyme-linked immunospot assay (T-SPOT) positive without clinical manifestations). (Note: Patients with latent tuberculosis infection may be re-screened after starting preventive treatment for one month according to the guidelines. To continue participating in the study, patients must agree to complete the preventive treatment plan during the study period, but rifampin treatment should be avoided.)
* History of severe herpes zoster or herpes simplex infection, including but not limited to herpes encephalitis, disseminated herpes simplex, and generalized herpes zoster.
* History of severe bacterial, fungal, or viral infections within 2 months before the first dose requiring hospitalization and intravenous antibiotic or antiviral treatment.
* Received live vaccines within 4 weeks before the first dose or plan to receive live vaccines during the study period.
* Clinically significant infections during the screening period, including but not limited to upper respiratory tract infections, lower respiratory tract infections, herpes simplex, herpes zoster, requiring antibiotic or antiviral treatment.
* Subjects with any major illness or unstable clinical condition (such as kidney, liver, blood, gastrointestinal, endocrine, lung, mental, neurological, immune, or local active infection/infectious diseases), as determined by the investigator, are not suitable for participating in this study.
* Abnormal laboratory tests during the screening period: a) alanine aminotransferase (ALT) or aspartate aminotransferase (AST) ≥3 times the upper limit of normal (ULN); b) Hemoglobin \<90g/L; c) White blood cell count \<3.0×109/L; d) Neutrophil count \<1.0×109/L; e) Lymphocyte count \<0.5×109/L; f) Platelet count \<100×109/L; g) Total bilirubin \>2 times ULN; h) Other significant laboratory test abnormalities that the investigator considers the subject unsuitable for participation in this study.
* Subjects with poorly controlled diabetes or diabetes with significant complications (such as retinopathy or nephropathy).
* History of malignant tumors (including in situ carcinoma) and lymphoproliferative diseases within 5 years before the first dose.
* Received any marketed or investigational biologics within 8 weeks before the first dose or 5 half-lives (whichever is longer).
* Received small molecule drugs such as Upadacitinib, Ozanimod, or other marketed or investigational drugs within 4 weeks or 5 half-lives (whichever is longer) before the first dose.
* Received fecal microbiota transplantation, cyclosporine, tacrolimus, mycophenolate mofetil, thalidomide, or other drugs within 4 weeks before the first dose.
* Received any other investigational drugs within 1 month or 5 half-lives (whichever is longer) before the first dose.
* Underwent surgical procedures within 4 weeks before the first dose or plan to undergo surgical procedures during the study period.
* Received immunoglobulins or blood products within 4 weeks before the first dose.
* Used potent CYP450 inducers (such as rifampin, phenobarbital, carbamazepine, phenytoin sodium, etc.) within 4 weeks before the first dose.
* Used local treatments (enemas or suppositories), intravenous steroids, azathioprine or 6-mercaptopurine, anti-UC or CD Chinese medicine, anti-infective drugs, or anti-diarrheal drugs within 2 weeks before the first dose.
* Subjects receiving methotrexate treatment must not have received methotrexate treatment for the current course within at least 42 days before screening, or stable-dose methotrexate treatment within at least 28 days before the first dose.
* Received nonsteroidal anti-inflammatory drug (NSAID) treatment within 1 week before the first dose (except for topical NSAIDs and low-dose aspirin for cardiovascular protection).
* Subjects who have undergone organ transplantation and require ongoing immunosuppressive treatment.
* Allergic to any known components of TQH3906, or with any history of severe drug allergies.
* History of drug abuse or positive urine drug screening.
* Any other reasonable medical, psychiatric, or social reasons that the investigator considers the subject unable to participate in this study.