If the sidebar is open, click the New Tab Group button in the toolbar.
Choose New Empty Tab Group.
Enter a name for the Tab Group, then press Return.
Control-click a tab in the tab bar, choose Move to Tab Group, then choose the Tab Group.
You can also drag tabs from the tab bar into a Tab Group.
In the Safari app on your Mac, do any of the following:
Delete a tab from a Tab Group: Open the Tab Group, place the pointer over the tab in the tab bar, then click the Close button Close tabs in Safari on Mac