An in situ gel separator based on an electrospun three-layer nanofibrous membrane (PSE11-Gel) is developed for high-performance lithium-organic batteries (LOBs). The highly efficient shuttle effect inhibition of organic cathode molecules or lithiated intermediates has been demonstrated for PSE11-Gel to realize high-capacity stable LOBs.