The Segregated Witness had Bitcoin Improvement
Proposal number BIP141.The reason behind was to solve malleability (Malleability is a property of some cryptographic algorithms) and it is plan to reduce a blocksize control problem that reduced Bitcoin transaction speed it means this is separated the transaction into two section
first is removing the unlocking
signature from the original portion and second is attached as a separate structure at the end.