Background: Ibuprofen (IBU), a nonsteroidal anti-inflammatory drug, shows poor gastrointestinal absorption due to its low solubility, which limits its clinical application. Objective: In the present study, we aimed to develop thermosensitive gel-mediated ibuprofen-solid lipid nanoparticles (IBU-SLN-ISG) to improve the dissolution and bioavailability of IBU after rectal delivery. Methods: IBU-loaded SLNs (IBU-SLNs) were developed and optimized applying Box-Behnken design. The optimized IBU-SLNs were characterized by physicochemical parameters and morphology. Then, the optimized IBU-SLNs was incorporated into the gel and characterized for gel properties and rheology and investigated its release in vitro, pharmacokinetics in vivo, rectal irritation and rectal retention time. Results: The optimized SLNs had an EE of 90.74 +/- 1.40%, DL of 11.36 +/- 1.20%, MPS of 166.77 +/- 2.26 nm, PDI of 0.27 +/- 0.08, and ZP of -21.00 +/- 0.59 mV. The FTIR spectra confirmed successful encapsulation of the drug inside the nanoparticle as only peaks responsible for the lipid could be identified. This corroborated well with XRD spectra, which showed a completely amorphous state of the IBU-SLNs as compared to the crystalline nature of the pure drug. The gelation temperature of the prepared IBU-SLN-ISG was 33.30 +/- 0.78 degrees C, the gelation time was 14.67 +/- 2.52 s, the gel strength was 54.00 +/- 1.41 s, and the mucoadhesion was (11.54 +/- 0.37) x 102dyne/cm(2). The in vitro results of IBU-SLNs and IBU-SLN-ISG showed a biphasic release pattern with initial burst release followed by sustained release. More importantly, IBU-SLN-ISG produced much better absorption of IBU and improved bioavailability in rats. In addition, IBU-SLN-ISG caused no irritation or damage to rectal tissues, and could be retained in the rectum for a long time. Conclusion: Thermosensitive in situ gel loaded with IBU-solid lipid nanoparticles might be further developed as a more convenient and effective rectal dosage form.